<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
	<link rel="stylesheet" href="jquery-easyui-1.4/themes/icon.css" type="text/css"></link>
  <link rel="stylesheet" 	href="jquery-easyui-1.4/themes/default/easyui.css" type="text/css"></link>
   <link rel="stylesheet" 	href="css/global.css" type="text/css"></link>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.min.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/locale/easyui-lang-zh_CN.js"></script>
  <script type="text/javascript" src="jquery-easyui-1.4/jquery.easyui.min.js"></script>
  <script type="text/javascript" src="admin/question/questionList.js"></script>
     <script type="text/javascript" src="js/formatStrToDate.js"></script>
  </head>
  <body>
  		<table id="dg"></table> 
  		<div id="tb">
			<a href="javascript:add();" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
			<a href="javascript:edit();" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
			<a href="javascript:del();" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">删除</a>
			<a href="javascript:refresh();" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		</div>
  		 <!-- 添加 -->
 	<div id="dlg" class="easyui-dialog" style="width: 580px;height: 460px;padding-left: 20px;"
		  closed="true" buttons="#dlg-buttons">
  			<form action="" id="fm" method="post">
  				<table style="line-height: 30px;">
  					<tr>
  							<th width="100">问题标题:</th>
  							<td ><input type="text" name="questionTitle" class="easyui-textbox"  style="width:240px;"></td>
  					</tr>
  					<tr>
  							<th width="100">关键词:</th>
  							<td ><input type="text" name="questionKeyword" class="easyui-textbox"  style="width:240px "></td>
  					</tr>
  					<tr>
  							<th width="100">点击量:</th>
  							<td ><input type="text" name="questionClick" class="easyui-textbox"  style="width:240px "></td>
  					</tr>
  					<tr>
  							<th width="100">收藏数量:</th>
  							<td ><input type="text" name="questionCollection" class="easyui-textbox"  style="width:240px "></td>
  					</tr>
  					<tr>
  							<th width="100">点赞数量:</th>
  							<td ><input type="text" name="questionAbout" class="easyui-textbox"  style="width:240px "></td>
  					</tr>
  					<tr>
  							<th width="100">悬赏分数:</th>
  							<td ><input type="text" name="questionIntegral" class="easyui-textbox"  style="width:240px "></td>
  					</tr>
  					<tr>
  							<th width="100">等级:</th>
  							<td >
  								<select id="cc" class="easyui-combobox" name="questionLevel" style="width:240px;height: 25px;">   
									    <option value="0">普通</option>   
									    <option value="1">急求回答</option>   
									</select> 
  							</td>
  					</tr>
  					<tr>
  							<th width="100">是否解决:</th>
  							<td >
  								<select id="cc" class="easyui-combobox" name="isFin" style="width:240px;height: 25px;">   
									    <option value="0">解决</option>   
									    <option value="1">未解决</option>   
								</select> 
  							</td>
  					</tr>
  					<tr>
  							<th width="100">回答数量:</th>
  							<td ><input type="text" name="questionAnswerCount" class="easyui-textbox"  style="width:240px "></td>
  					</tr>
  					<tr>
  							<th width="100">问题详情:</th>
  							<td><textarea  name="questionDetail"  style="width:240px;height: 60px; "></textarea></td>
  					</tr>
  			</table>
  	</form>
  </div>
  <div id="dlg-buttons" style="text-align:center">
			<a href="javascript:saveOrEdit();" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
			<a href="javascript:closeDialog();" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
	</div>
	
	<!-- 评论列表 -->
	 	<div id="dlg-comment" class="easyui-dialog" style="width: 620px;height: 460px;"  closed="true">
			<table id="dlg-comment-table"></table>  
		</div>
  </body>
</html>
